// 关于用户状态在本地的存储

const userStatusKey = "userStatus";

const setLocalUserStatus = function(data){
    localStorage.setItem(userStatusKey,JSON.stringify(data));
}

const getLocalUserStatus = function(){
    const data = localStorage.getItem(userStatusKey);
    return JSON.parse(data);
}

const removeLocalUserStatus = function(){
    localStorage.removeItem(userStatusKey);
}


export {
    setLocalUserStatus,
    getLocalUserStatus,
    removeLocalUserStatus
}